home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / _WordDocSave.au3 < prev    next >
Text File  |  2007-09-08  |  427b  |  11 lines

  1. ; *******************************************************
  2. ; Example 1 - Open an existing word document, append some text,
  3. ;                save and quit.
  4. ; *******************************************************
  5. ;
  6. #include <Word.au3>
  7. $oWordApp = _WordCreate (@ScriptDir & "\Test.doc")
  8. $oDoc = _WordDocGetCollection ($oWordApp, 0)
  9. $oDoc.Range.insertAfter ("This is some text to insert.")
  10. _WordDocSave ($oDoc)
  11. _WordQuit ($oWordApp)